<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>

import { mapGetters } from "vuex";

export default {
  name: "app",
  data() {
    return {};
  },
  watch: {},
  created() {
  },
  mounted() {
    this.setIconUrl(this.iconUrl)
  },

  methods: {
    setIconUrl(iconUrl) {
      (function(iu) {
        var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
        link.type = 'image/x-icon';
        link.rel = 'shortcut icon';
        link.href = iu;
        document.getElementsByTagName('head')[0].appendChild(link);
      })(iconUrl);
    }

  },
  computed: {
    ...mapGetters(["iconUrl"])
  }
};
</script>
<style lang="scss">
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
</style>
